Fixed error cases
Added awareness of directory heirachy to gitweb