Add -4 option to force Rails 4 mode
Properly set "4.x" version if it can't be determined