Changed if operator to evaluate platform directory