Add condition to omit /.my.cnf creation when $root_home is empty.