Bash conditional fixes

I've converted all the instances of ``[[ `$command` ]]`` to just `$command`

I also added some fixes to hide the output again