also cater for directory names with digits in them