[PATCH 2/3] scripts/make-erofs.sh: Avoid calls to dirname