check before add to sys.path