Fix filename verification when in a subdirectory