Lint bash and small fixes