Fixes execution of migrations from within the node app.

Resolves #41