I changed it to

    local-directory-expression="T(System).getProperty('file.separator') + #remotePath + '?:'"

with the mock tests