correct copy destination to $basedir
Merge pull request #1201 from lr1980/master

correct copy destination to $basedir