Fix prelude-open-with on gnu/linux/freebsd

Close #678