accept and ignore trailing `.rb` on CL arguments

"Be conservative in what you do, be liberal in what you accept."
Merge pull request #3013 from rolandwalker/accept_trailing_rb

accept and ignore trailing `.rb` on CL arguments