Fix handling of "/" in base-path-pattern (suggested by Hugo Arregui)

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>