fix `install` when `/etc/resolver` dir does not exist

thanks to @feministy for the bug report