add gitignore
fix shell script

it depends on the presense of public/index.php,
if you have another directory structure, you can change it here