fixing file paths for externals