Fix lacking os before mkdir