fix how "detect?" looks at the machine

Fix a syntax problem in "detect?". No idea how this is working in vagrant 1.2.7+, but in vagrant 1.2.2 it causes a problem.