Check whether Nginx is already installed before installing it again
Added missing dependency