normalize dir input

this is probably a good idea.