fix scripts and functions path