fix shebang and only reinstall gems with native extensions