Fix for detecting subdirectory mode.