check valid path for untar