fix altercmd to check if current line is user prompt
Merge pull request #67 from tyru/fix-altercmd-prompt-check

fix altercmd to check if current line is user prompt