Intalling Craft in the webroot folder
I just tested it for you and this

$craftPath = './craft';


or this

$craftPath = 'craft';


does both work for me!

This probably doesn't help you much; I only wanted to confirm, that your $craftPath = './craft'; config should be working for your file structure.