Fixed bug in --totals that prevented it from working with folders that have spaces