ability to invoke code from anywhere

adjusted the paths so that parse.sh could be called from anywhere and so that paths/files in the config are resolved relative to the config file.