fixed path bugs in scripts