expand %% to the path of the current buffer