Building shell script fast