Add a slash at the beginning of index.php, closes #763