fix problem with relative paths.