[streamcloud] Match URLs without fname (Closes #4144)

Also, modernize a bit.