Add rimraf module, neater paths

Calling rmdirSync on a directory won't delete its
contents - it'll throw an error if it's not empty.
Instead, use rimraf :)

Paths aren't handled consistently on windows either,
so it's best to use path.resolve() when joining paths.