Made sure that if AL_EXT_IMA4 wasn't present during compilation, it would still compile.
Added ability to attach error log to email if error occurs.
Fixed error where Sys_CWD was actually spelled Sys_Cwd, meaning the function publicly listed wouldn't link.
Made email error formatting more useful so that a printf-format string can be used for the body