Remove redundant None check
Hopefully fix issue with non ascii directories
lambda -> partial