Remove trailing whitespace of text files in directory