fixed bug in check_prerequisites.py for Ubuntu