Fix extensions.
- Add sh extensions to some scripts.
- Use "in." prefix instead of ".in" sufix for substitutions.