fixed path issues in automation script