added check for file existence, and only prepend local path if not.

Fix issues reported in #2

Also output full file-path on error.