Fix bug where non-existent directory would give NPE. Instead print warning.