update remote folder if it is provided