filter out dirs on local validate