Fix hardcoded AMOS paths

This PR uses `which` to locate AMOS scripts instead of hard coding the paths.