Improve external script include method