more verbose output and path fix

fix an error when path ends with a '/'