Move commands method from global to inside Specinfra

Fix for serverspec/specinfra#160