removing trailing newline on version reading