remove GNU basename call (does not exist on OS X)