Allow COMMAND health checks without ports

Fixes #891.