Allow specifying empty target

This overrides the default target and is useful mainly for testing.