Fix RunManager copyRequiredFiles Regression

Variable name was transposed when extracting `copyRequiredFiles`
function during the last bug fix.

@macumber
Adding unit test