checking filesystem before anything else in rebuild