allow module locations to be specified as either paths or URIs