fixed path issues in scripts