(Hopefully) fixed bug in HelperFunctions.ensure_dir that made it crash if you gave it a local file or directory in your current working directory