Fixed path handling so autload can be called from alternative directory