Add $(shell ...) substitution (fix #102). Based on patch by Isaac Isao Saito.