Handle mkdir, cd, setenv, and bin dir commands as shell commands
Filter out completion line for build, clean, and test stages
Cleanup formatting