remove dependency on external program "rm"