WS-121 Delivery directory permission fix
Only changing permissions if vlapipe owns the delivery dir, almapipe already creates with the correct perms.
This also changes the chmod to only run on directories, I didn't want to change the perms for delivered files unless we think that's helpful.