A few backward compatible fixes

These allow Metasploit to function in the absence of Rails and Bundler