Added back Linux compatability and now using proper html parser

Should fix #1.
Please check still works with Windows before merging into master.