fix startup script and include virtualenv setup