Fixed bug which allows sub folder installs to work