Updated PhpArray to expand paths using __DIR__

When using Apigility config files with __DIR__ are var_exported causing the real path to be written instead. This is an issue for development/production setups where the directory may vary from server to server. This change just does a str_replace on the path of the file being written with the __DIR__ constant.