correct copy destination to $basedir