Delete directories instead of entering them

Closes #6.