refactor: use directory resource instead of bash (script) resource