improved handling of assets when writing project files to disk.