This dies on spaces and/or underscores in filenames, apparently everything works fine without it.