Write startscript directly in mason. Write .profile.d environment script if not available