fixed cwd issue in command line tool
0.5.1