Add recursive log dir creation facility for nginx

Setup fails if user wants Nginx logs to be in a different directory structure. For example, if it is set to /mount_point/var/log/nginx, if var & log aren't created recursively, it fails. 
This fix helps with the above by adding recursive creation of directories.