substituting relative paths for local paths