Rename main file and finishing script with getopts