Adapting script to Debian wheezy