generalized readlink location
Merge pull request #107 from ahmadia/fix_build_profile_test_general

generalized readlink location