Fixed index.php always being replaced by a file copy