Replace a string in all files of a directory or a subdirectory