Wrap QAxContainer references in checks for Mac compatibility.
Replace paste(sep="\\") calls with file.path which is cross-platform.
Strip newline before splitting covariates.