Fixed a bug introduced in previous commit (iterating None when listing a non-existent dir)