I'm not sure if this is actually a bug but... The examples in kaptain all have #! /opt/kde2/bin/kaptain or #!/usr/local/bin/kaptain.