Fixed bug in Util class that it couldn't create directories
using{} branch now for code to create a file from byte array