Handle error before modifying script
Add minimatches util function
Provide cwd option for manager

The lib and main values are glob patterns.  Even on Windows they should use forward slashes for path separators.
Use minimatch to determine if a script is a lib script
Provide script in the case of add or modify
0.6.2