common: Make sure tilde expansion works for the mkdir functions.