Setup user dir properly

877e82ff4fcf7bf68f81e96f31a92a4931300708 :Fix of not working user-dir. user-dir enabled only when USE_HOME_DIR is set. Related to issue #5829. Save fix.

35917d74142ba3260bf80dbb952ae13ae2bf0747 This is my suggestion. Use config/ dir in archive/source dir when USE_HOME_DIR is unset. Simple and nice.