creating missing profile dir
adapt for ubuntu 14.04