Script can now be run from anywhere.

Changing current dir to script location, and prepending current dir
to input file and output path unless they are absolute paths.