protected File getPreviousOutputDirectory() {
		File dir = previousOutputDirectory;
		if (dir == null && !IOSImageUtil.isNullOrWhiteSpace(subdir.getText())) {
			dir = new File(subdir.getText());
			if (!dir.isAbsolute()) {
				dir = null;
			}
		}
		if (dir == null && previousTargetDirectory != null) {
			dir = previousTargetDirectory;
			if (!IOSImageUtil.isNullOrWhiteSpace(subdir.getText())) {
				dir = new File(dir, subdir.getText());
			}
		}
		if (dir != null && dir.exists()) {
			return dir;
		}
		return null;
	}