support pushd to run on cloudfoundry