Fix cpd shell command for multiple frame session

When more than two frame is used, buffer in the most recently
*created* (not *visited*) frame is used.
Fix incorrect naming
Merge pull request #54 from tkf/multiframe-cdp

Fix cpd shell command for multiple frame session