Replaces the hard-coded constant '3' with the last item of the splitted path in the version check comparison at the start of the script that builds the Vivado project.
This makes the script work correctly when Vivado is installed in a path that is more or less than 3 directories deep, i.e /opt/Xilinx/Vivado/2018.2/
Replaces the hard-coded constant '3' with the last item of the splitted path in the version check comparison at the start of the script that builds the Vivado project.
This makes the script work correctly when Vivado is installed in a path that is more or less than 3 directories deep, i.e /opt/Xilinx/Vivado/2018.2/