Fix #4 and #5 by resolving paths and process vars
Merge pull request #6 from nicola/hardcoded

Avoid hard-coded paths and using process vars