Customize manage.py location and add some tolerance.

I modified cricket a bit because it didn't work on our current setup. It makes some assumptions which are not true at our company.

So I added some flexibility, while maintaining backwards compatibility.