Fix direct execution with root user