Relativize imported file paths when resource path is set