fix issue #44 so the parser.py script can be run from different directories

Fixes issue #44