Resolve path issue with files

Hotfix for resolving path for files