extend PATH setting to preffix and suffix, update #2585
add support for virtualenv, fix #2585