Make lib dir before changing ownership of app dir

Backport of jb fix, change I8998a50359892277b15e80b5b5590ff94b125467

Change-Id: Id139c7b60f1ccd094670e67ee2b3c2d590364a11