Fix recursive crash when home path cannot be created