fixed the current script path problem