replace a rel path with an abs path