Bug 1026988 - Better error handling for file accessing in build system