Change posix module to optional dependency

- Add posix to optionalDependencies in package.json
- Change config.coffee to allow posix to be optional
- Change index.coffee to allow posix to be optional

Fixes #556