Don't execute mktargets.py if cannot cd into correct directory
Merge pull request #169 from varunbpatil/mktargets_sh

Don't execute mktargets.py if cannot cd into correct directory