[bugfix] added trailing slash to dirs

closed #46