Now does correct behavior on file paths.