Change TYPE to PROJECT_TYPE
Allow spaces around [ and ] in shell scripts