add free command to debian,redhat path

Cherry Pick from master
Merge pull request #336 from nickanderson/pick_pr_317

add free command to debian,redhat path