Automatically detect the public folder name