use standard ruby library Dir.pwd instead of shell pwd