internal error on code generation when output is set to project root, fix #14