Added support for basepath in manage.py