Making subversed.d executable as a script
Fixing getc statement (stdout -> stdin)