fixed commands_dir and system_dir so it works on windows too