Swapped out local path function for php-path lib