Make file_remove() return proper exit code, use it when setting props