Better check of images dir. Fixes middleman/middleman#1300