remove popd arg ... invalid arg error in ubuntu 14.04 causing scripts to silently fail