Improve if statement compatibility when checking HTTP server port
Improve if statement compatibility when checking if VM already exists

Fixes #4
Merge pull request #7 from alanpearce/bash-if-fix

WIP: Bash if fix