improve the way we get remoteExtPath in Resources.php

Change-Id: Ia5b95f50f39667048206b3babcb24ce4a08509df
Merge "improve the way we get remoteExtPath in Resources.php"