Fix subdir condition