fixed check-version for empty directory