fixes folder creation errors
fixes checking for if folder found or not with new boolean