Strip input dataset path upon output in lightcurve script