Adding functionality to set user/pass to run VirtDir under, also making more robust/versatile