Adds a bin

Fixes some relative paths with __dirname.