Fix error handling in fileutils move().