Added a function to rename a given file