Remove unnecessary empty lines in the end of files