Update config.coffee

Improved robustness.  Now regex allows multiple slashes in either direction