Fix subdir condition
Merge pull request #2 from dotovr/master

Fix subdir condition