checking tmpDir uploadDir folders

validate that folders exists