change some mongo parameters and check if js command file exist