Fix wrong variables and add remote path for rsync