Added logic for returning the '.' index specifically
Fixed up pathval