fix raddebug -t 0 handling typo and incorrect debugfile permissions