Bug #6021 Fix misuse of Sys_Mkdir (Joerg Dietrich)