Escape characters are horrible, and so is Windows' path separator. It's essentially ```\``` or ```/```. Still really wishing JS had a proper ```basename``` function.