Write the compiled file to the storage directory.