Fixxing some sys_dir stuff