fix #2796, spurious error from evalfile with trailing whitespace
not a pretty solution, but better than barfing for now.