When installing, check if dirs exists.

Signed-off-by: Rudá Moura <ruda.moura@gmail.com>