Fixed exception while detecting paths of 'header.php' and 'footer.php' when '/local' directory is absent.