Fix usage of CANVAS_OS_PATH for script/console