Usability updates and bug fixes

- Added mapping for sysname
- Returns error codes on error
- Checks if output file in monolothic mode is readonly and attempts to
change the attribute
- Reports failed access to output file in monolithic mode instead of
crashing