work around for fibres crash

This is the infamous fibres crash, this time happening on Mac with the login command.
The code works around it.