Fix process error messages handling
Improve file access utilities