Added mkdir to sm.pl