Refactor scripts to make checks reusable; fix install and set-path