bug fix; create remote dir in case it does not exist automatically