@Override
		protected boolean shouldConsider(Resource r) {
			try {
				return r.getFile().isDirectory();
			}
			catch (IOException e) {
				return false;
			}
		}
Attempt to resolve the xd.home placeholder and take care of corner cases where the user may have provided a
trailing slash, etc.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/server/options/ResourcePatternScanningOptionHandlers.java