fix: wrong pathnames if using relative paths