Fix problem with hit bdir command

Please make sure this is the correct fix before merging.