Replaced perl's -w with  to make /usr/bin/env perl work with Ubuntu.