made some of my bash script work in os x

pdefdev needs sudo in os x