Provide a better error message for the -E option in ruby 1.8.

Closes #875.
Closes #879.
Merge branch 'issue-875' into stable
Merge branch 'stable'