Made script path flexible