better base-path handling of slash character. Closses issue #157