Fixed a bug where we could leave app tmp directories around if the bundle didn't exist.
Holy bananas findbugs found an actual unused variable. Fixed.