fix mathjax timeout and writability check of config file