improve src/sim

make it more robust to target subdirs getting deleted out from under
it, or them not being present due to being gitignored

Change-Id: I16d121cf5b8a5f8936279e14a19a1cebcb8575ab