Change wget to curl.

In order to resolve SSL certificate verification issues
Remove python-pip package.

Various distributions offer older pip versions that do not support the
version parameter
Add missing "0"
Fix wrong path of sample configuration file.
Merge pull request #168 from anadahz/fix_set-dependencies

Improved script and resolved bugs.