add with_embedded_path helper

make it easier to get the embedded path correct on both windows
and unix.