Found that the HTAccess module was still being added to the 'x_modules' table upon installation on Ubuntu, further investigation showed that no upgrade shell scripts was removing this directory so I've now updated upgrade shell scripts and removed the entries to add this module to the modules table upon installation and when upgrading to 10.1.1.