Faster check if command exists
Merge pull request #7 from Mic92/patch-1

Faster check if command exists
use functions instead of variables for os detection