updated run script to be path-independent