Add a replacement implementation of store_file.