Updated to reflect new, third command line argument that sets $webdir.