Change querykeys to allow for single key selection

I have a need to update the metadata on an already specified index. I hit a snag with the way the path was being constructed because it was adding the period to the path upfront meaning I could never get back to the original path.

The  changes below only add the period if a start or end time is specified.