fix bundled dir check

used `is`, which was wrong