Added some guards in file utils

This notice the user when file utils cannot be initialized.