added default http dir and automatic addtion of / to end of dir if not already there