Updated check to validate subdirectory installation compatibility