Added __DIR__ to path to stop file not found errors I was getting