fixed path bug when going up past the last '/', edit bug with Bow function going back past the first character