fix problems with directory containing spaces

Thank you for your wrapper, it is really useful to me. I have found a problem with smb shared directory containing spaces in the name. Here is a very simple working solution.