Fix fallback for browserify for optional modules.
Merge pull request #999 from eiriksm/browserify-compability-again

Fix fallback for browserify for optional modules.