stript trailing slashes before joining paths
filter pwd from texmf directories