Fixing development environment for localhost

Fixed a bug in the localhost detection causing the script to die prematurely
Merge pull request #6 from thenerdery/bugfix/dev-config

Fixing development environment for localhost