Turn symlinks wrongly commited as regular files back into symlinks