6104174 Move command availability detection code to common.util

Authored and Committed by msrb 8 years ago
    Move command availability detection code to common.util