Added ability to specify directory (whoagitd)