Check cmd is executable on Windows