Fix handling of absolute file paths for resources