refactored to support current version of nginx-blocks formula