behave the same whether or not there's a trailing slash
take care of trimming and splitting path slashes. update readme.