Made config dir available as a parameter.
Replace hardcoded paths referring to '/etc/nginx' with config variable instead.
Add pre conditions to spec file.
Merge pull request #338 from janorn/config_dir

Add nginx config dir as a parameter