Updated autoloader/config class detection method
Add newline to end of file
Merge pull request #1545 from adrianguenter/bug/1543

Bug/1543