configure.py: Use os.path.expanduser

so that stuff like:

```
   ~/.ssh/devops.pem
```

works.