Added directory parameter to autoload() method and defaulted to use same dir as class file
Merged conflict which checked for writable dir