remove the trailing slash when using a directory as argument