Refactor module files protection to work with CGI / Fast-CGI, starting with php 5.3.