ide/project: Fixed exclusion check for compiling single file