change the calculation of the dist path to make it work with standard and composer installs