fixed failed refactor for sys.path in commons.py