corrected exit condition for picasa. also sips for a directory fixed