fixed KeyError if ignored directories commented out

if the ignored directories line was commented out, the program would throw a KeyError.