made configuration directory current when invoking lifecycle hooks