Rename file appropriately