Make compatible with browserify

Require lib/ from relative path instead of __dirname