Clean up bash check and fix replwrap test