Remove hardcoded CTRULIB variable
Merge pull request #1 from archshift/patch-1

Remove hardcoded CTRULIB variable
fix check for zero bytes written