Use the file's path for it's local path

fixes #1