correctly resolving relative paths from external shims file