made ssh upload optional. if no ssh host is defined, then no upload is attempted


Also added the possibility to use a different path then /tmp to prevent issues with file permission with different users (option -j)