make sure stat uses full path for REG check