Fix hasbangs to be compatible with virtualenvs

Change-Id: I1e3c661873095fceb57c6051806e169a1cf4acb8