create to fix issue #96, grunt hanging on Windows

traced the hang to the regular expression evaluation.  Upon test being called, it locks up, and goes no further.  decided to use the path.dirname function, as we are requiring path anyway.  Copying this to my application created from 'clever init' stopped the hang