Update listen code

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