re-write variables so space is allowed in dir/filename; update dm6 URL