find buid directory automatically