check dir not file in bootstrap