Fix shell script path detection