Fixes issues with flask-script 0.6.3
Merge branch '50-fix'