Fixed excluded files checking