builtin/apply: make remove_file() return -1 on error