build tmp dir validator