The default supplied /home/aiw1/.profile adds records into PATH and LD_LIBRARY_PATH each time called regardless of whether they exist already so the path becomes littered with multiple copies of the same path
export PATH=$PATH:/aiw/aiw1/pc/bin:/aiw/aiw1/pc/bin/depends
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/aiw/aiw1/pc/bin:/aiw/aiw1/pc/bin/depends
It also calls /opt/infoprint/ippd/base/config/ippdprofile which adds more. For PATH, this does check and only adds missing. For LD_LIBRARY_PATH it adds another collection
export LD_LIBRARY_PATH="$AIWPATH_UNIX/bin:$AIWDATA_UNIX/bin/$OSNAME:$AIWDATA_UNIX/bin:$AIWDATA_UNIX/lib:$AIWPATH_UNIX/afpviewer/lib:$PSFPATH/bin:$LD_LIBRARY_PATH"
Please consider adding the PATH logic to LD_LIBRARY_PATH export sections of both.