Use 

```python
jellyfishdir = glob.glob(os.path.join(os.path.dirname(self.cfg['start_dir']), "jellyfish-*"))
```