Alternative prebind implementation

An alternative prebind implementation which doesn't use `exec`.