improve W005 checker by properly parsing URL and checking filename

CC: @hnrch02 
It's fine as is, was just a thought passing by.