Fix to ensure paths are proper if file is within a folder with the same name as the theme.