install.sh: Check if directories exist before creating them.