Replace stray [ test with [[ in prompt script