workon fails when .project file ends in newline

workon fails when .project file ends in newline