php method to create dir instead of calling bash