fixed link sh to use scriptpath