substituting relative paths for absolute paths