Update detect

My assumption is that we have a /public directory for serving files, rather than in the root.