[BUGFIX] Only scan package base paths if subdirectories exist