fix handling of relative paths in BJ working directory