fixed __FILE__ variables in main.php