Replaced $baseDir with the much more logical $IP - thanks to Jpadfield

Change-Id: Icbed55f055656ee423f5b4afc05298bd861d234a