Only (over)write asset if it does not exist or is outdated

This significantly improves performance for larger projects.