Never deploy the public/modules folder, let the remote server populate it with locally correct links