Fixed readme for npm. Fixed config module's directory function