create and put proper permissions to new tmp dir