replace conditional require

With this fix and the last one this module works with browserify v2 :)