Fix permissions errors when run in github actions
🎫 Addresses issue: #5 (closed)
🛠️ Summary of changes
- when an argument is provided to check, it is a directory to write a file to, not the filename itself.