applied patch for issue https://github.com/techniq/flask-script/issues/71