Revert API changes introduced by "Use IResourceProxy for folder script path."

This partially reverts commit af7745584f5b927a369a0da8cf65ad8af9219a11 as discussed.