Add nginx building script and fixing init-deb bug