Update listen code

Few updates for the new listen API.
Relative paths aren't output any more so we do that ourselves, the rest is pretty much the same.