handle relative paths correctly

fixes #23