Use wordpress built in function

hides os dependancy from wpec
Merge branch 'theme-engine-default-style-fix' into local.master