private void createJobDirectoryStructure(URI baseDir, String host) {
		if (xdEnvironment.isOnEc2()) {
			Assert.isTrue(
					StreamUtils.createRemoteDirectory(baseDir.getPath(), host, xdEnvironment.getPrivateKey(), WAIT_TIME),
					"unable to create job module base directory for "+baseDir.getPath());
			Assert.isTrue(
					StreamUtils.createRemoteDirectory(baseDir.getPath() + "/config", host,
							xdEnvironment.getPrivateKey(),
							WAIT_TIME),
					"unable to create job module base directory for "+ baseDir.getPath() + "/config");
			Assert.isTrue(
					StreamUtils.createRemoteDirectory(baseDir.getPath() + "/lib", host, xdEnvironment.getPrivateKey(),
							WAIT_TIME),
					"unable to create job module base directory for "+ baseDir.getPath() + "/lib");
		}
		else {
			String path = baseDir.getPath();
			File file = new File(path);
			if (!file.exists()) {
				Assert.isTrue(file.mkdir(), "unable to create" + path);
			}
			path = baseDir.getPath() + "/lib";
			file = new File(path);
			if (!file.exists()) {
				Assert.isTrue(file.mkdir(), "unable to create" + path);
			}
			path = baseDir.getPath() + "/config";
			file = new File(path);
			if (!file.exists()) {
				Assert.isTrue(file.mkdir(), "unable to create" + path);
			}

		}

	}
Creates the directory structure so that a job's module components can be installed properly.  This method extracts the root file name from the xmlFileName
and uses this as the base name for the job module's directory.

@param baseDir the base directory where a job module should be installed.
spring-xd-integration-test/src/test/java/org/springframework/xd/integration/test/AbstractIntegrationTest.java