Using gem config rather than global variable for behavior check on object construction.
Fixed GitHub pages rake task.