bugfix: wrong relative dir handling