adding support for commonJS modules detection