osxbundle: fix recursion termination

Prevents the binary from being copied over to the lib directory.