Make asset path generation more consistent