Super small AMD shim with path resolution