minor fixes to smbchk.py