compile: Really fix setting source_type

Setting it in a subshell doesn't work.