add constant SCRIPT_DIR; fixed .htaccess file generate in script_path;

add constant SCRIPT_DIR; fixed .htaccess file generate in script_path;