Used render_file() to download diff. Used realpath() to grab the absolute path of the diff file to be pass on render_file()