Use os.makedirs for multilevel folders

If `~/.local/bin` doesn't exist `os.mkdir` fails, because it can't create directories recursively. Use `os.makedirs` instead!