Better error message when moving a temporary file to a directory that doesn't exist