Fixes bug mentioned in https://forum.sympl.host/t/scripts-losing-x/157/9 with multiple files in public/cgi-bin