Add support for relative paths

Fixes #4