implementing better home directory creation in secure and manual config mode