Rely on Pathname#file? as it fits more accurately