Fix script after path additions