Fix incorrect use of remove_file