Fix silly bash logic bug