Is system.orientation returning correctly for iphone 5S ?

I’ve noticed that system.orientation on launching an app give

the default orientation as defined in build.settings for an iphone5S.
I’ve tested the same code on iPad2 and iPadMini and get the correct
answer, but with iphone5S I always get the build.settings default
setting regardless of which orientation the app launches in, any hints
or ideas ?

build.settings

orientation = {
default = “portrait”,
supported = {
“landscapeLeft”, “landscapeRight”, “portrait”, “portraitUpsideDown”
}

main.lua

print ( system.orientation ) – gives wrong answer on iphone5S but not ipad2 or ipad Mini ?

I’m using print as an example, I actually send the string to the device screen and always get the default regardless of launch orientation on an iphone 5S

Using build: Version 2013.2100 (2013.12.7), ios 7.05 (11B601), the ipad’s are 6.1.3 and 7.04 so may be 7.05 issue ?