added pushd and popd wrapping functions
added changing working directory for scripts