for some reason $0 does not work when using ssh