Thanks for your quick response, I have managed to fix this Fatal error following your instructions, it turns out dir($path), was only looking at the theme folder and not into langs.
Once I added the following to the $dir variable the error went away and the folder could be found:
$dir = dir($path . "/langs");