Changed debug function to use format strings
Fixed accessing last line in directory window when path is on