Fixed path in creating custom script for machine and fixed check_mark function frontend/php.