strip newline from parsing version file