Hacky function to rename files