PR for issue#149, the rack middleware should create the print dir for profile result