bd prints errors to stderr and cd to . in case of an error