Script updates to work with pbsdsh