fix existence check of command
fix directory structure of shell scripts