Closes #2; remove __dirname from require call to main lib.