Updated preview_mkd to work on linux