Use ulimit -u in init script template to work with Ubuntu's dash.

See http://askubuntu.com/questions/97257/ulimit-u-gives-illegal-option-error-when-running-from-a-script-but-not-when-fro
Work around MongoDB bug crashing the daemon on unknown locale.