Check for number of arguments, fix extension of getimports script. Thanks Fabio :)