change __DIR__ to getcwd() so we can use it as submodule