fixed handling of relative file paths