fix typo in the `detect_squid_deb_proxy' snippet
create the build directory as late as possible

otherwise, in case of error, we create and leave an empty directory
catch invalid keys in the definition file