[TASK] Fix OS detection and use PHP constant for splitting the include_path