Some more use of boost::filesystem::path; catch exceptions in OnInit().