Adding backspace handling to shell