Removes endlines at end of files