Rename file, gives head and tail