Handling non-existing directories