Improved --get-path option; removed unnecessary fprintf()