Fix quick-detection for module-presence

"quick detection" for module-presence is broken:
current "quick detection" uses simple string-comparison which ignores (valid) variations of require/define function calls that include whitespaces.
E.g. if there is a space between function-name `require` or `define` and the opening bracket (e.g. `require (`), the current mechanism will "overlook" this (potential) module / dependency.