Adjust the values of dirs1 and dirs2 so that rotate_and_place orients textures correctly

Fix texture orientation when placing nodes using on_place = minetest.rotate_node on walls or ceilings - see  https://forum.minetest.net/viewtopic.php?f=6&t=10523