cd to dir of buffered file