Added the logic for global setup and teardown commands to be declared in
lib/setup and lib/teardown respectively.