Fixed issue #7: handling of relative paths