Fixed issues with directory creation for error files in mac due to
incorrect path separator