Fix the invalid path of virtualenv when using glob.