fixed so that files containing space chars are deleted