Generalise the directory creation code

Signed-off-by: John Else <john.else@citrix.com>
Add xmonad config

Signed-off-by: John Else <john.else@citrix.com>