use
```python
os.pathsep.join([os.path.join(path, 'bin')] + [x for x in os.environ.get('PATH', '').split() if len(x) > 0])
```