added call to os.chdir if os.path.curdir is not the top level project directory
Merge pull request #29 from azaze1/os.chdir

added call to os.chdir if os.path.curdir is not the top level dir