Fixed paths issues in scripts