When env variable SCRIPTS_DIR is unset the code reads or writes from a path