Made config file as variable and check for existence.
Made prefix calculation more robust - in case of `hostname` command is not existing.
Changed `tar` exit code handling - allowing *1* as exit code.