Fix globbing failure when stat call fails