Correct the path to an asset.