Writing version to replace absolute paths with relative paths