use getcwd() instead of exec('pwd')
Merge pull request #2 from addshore/patch-1

use getcwd() instead of exec('pwd')