core: fix unique_path compilation bug