Fixed rename task so that it can also move files.