extending autoloader to check local directory first

please import my changes :)