install script with gnu sed (gsed) instead of sed, for macOS and BSDs