If you do it this way it will never be dependable because it can break in multi-user mode. You should instead use the auto-enter serial function which will never ever fail you. :^)
Well we need it to be multi-user friendly, so I guess we'll just go with that then. Thanks for the heads up.