Optimization: provide static detect presense method to avoid Client init.
Also removes redundant call to os.path.exist(parentdir)