Fixes execution of migrations from within the node app.
Merge pull request #45 from piep/fixes-migrations

Fixes execution of migrations from within the node app.