Skip directory if packages is not installed.

Signed-off-by: crynobone <crynobone@gmail.com>