libpaf: Prevent autogen.sh to silently fail

Add some checks in order to guarantee that autogen.sh will return a value
different to 0 when any of the commands fail.