Fixed script to upload files to ~/print only if "-r" set