removes nested directories & fixes bug in Include()