updated prepublish to use common.npm

1. The old one called the remove directory code asynchronously. The sync version of the remove is cleaner in the test cases.
2. Created the function `clean()` to house the cleanup logic and call it from the cleanup test case. This seems to be the pattern in place.
3. I **should** have called `cleanup()` in the setup test. This ensures the test starts clean.