Troubled and nationalised Port Glasgow firm Ferguson Marine was trumped for the contract to build seven new loch-class ferries.