oschecks/utils.py: fix amqp check

  - fix amqp check if the command name is truncated
  - fix amqp check if the process is listening on a port