adjusting regexp for hostname allowing for dash, fixes #1