remove dead code block using an unknown variable

 - same "if" test in the block above, so this would never be reached
Change "&>" bashism to "> ... 2>&1", keeping the script as /bin/sh
Save with UNIX line breaks
fix unterminated string
use /bin/bash as interpreter for bash script
Save with UNIX line breaks
Fix comparison to be /bin/sh compliant