nginx packaging

Improve packaging procedure and fixes issue #11