Fix broken bdir command (fixes #161).