Files: also check if the source path is valid when doing a rename or copy operation

@DeepDiver1975 @LukasReschke