[Fix] Do not try to create a directory from a binary file.
[Fix] Gracefully handle invalid input by mounting c drive.
[Refactor] Standardised function names and definitions over all scripts.