Throw exception if object files folder cannot be created