Fix sanity check when using APP_SQL_DBPORT.
Merge pull request #13 from danielbush/sanity-check

Fix sanity check when using APP_SQL_DBPORT.