Fix hasbangs to be compatible with virtualenvs