virtualenv detect path modified to work on both linux and windows