file_rename fails if target file already exists; Hence deleting target if it exists before proceeding with rename operation