Fix bear.server to handle app-dir "."

and improve error message.