ngx-shm: fixed compatibility with nginx 1.4.x+. thanks Dane Knecht for reporting this issue.