small fix and waiting for samba to be up if sharing allowed (to setup the shares)