fix path to inputrc
include bash-completion, and use it if the system bash-completion is unavailable
use bash-completion 1.3 for the bash 3.x the backward competibility
add bash_profile