Fix issue #1036

Added `file_exists()` as per https://github.com/wp-cli/wp-cli/issues/1036#issuecomment-35817236