What was I thinking. The rename return code should not be negated. 0 is success. Anything else is error.