work with sinatra version >=1.3 as well as 1.2 - check to see whether public_folder is an attribute in sinatra (version >=1.3 have this) and use that attribute if it exists