Making asset.write use asset.location