Replace the --base code with relative paths.