Fix nesting issue that caused a crash when accessing a device through SSH

The code determining the proper @apps_dir variable for a device was accidentally nested only inside the branch that uses usbmuxd. When connected to a device over SSH, @apps_dir was nil and clicking "Select App" would cause a crash.