Do chdir within mktargets.py

This simplifies the calling shell script.
Merge pull request #209 from mstorsjo/chdir-within-mktargets

Do chdir within mktargets.py