adding automatic directory requiring for xcat/image