More error checking when creating virtual host directories