Fix swig install handling of config placeholders. Also fix incorrect reg...

Some modules (in this case common.template) specify a config value as:
```
{
  "js_base_path": ""
}
```
This indicated it requires this value be set, but is not going to set it itself. As a result I believe filtering these out of the configDependencies added to main.js is the right approach. This value is set by the framework elsewhere.

Also minor change to regex which was being output incorrectly when comparing with internal.require implementation.