fixed (?) incorrect handling of target directory with spaces