fix permissions of cgi script