Updated variable used for installpath
Added directory creation for logging