Making this more sturdy

I am using multiple versions of python. Using !/usr/bin/env python  instead if !/usr/bin/python makes this easeir to work with.

Also while creating init-db I was getting a error on archive due to none file specified. Given condition solved the problem.