use [ instead of [[ for compatibility
fix equals sign
improvments in the setup script