Perfect I just wrote a simple function that checks the wp version if it's 3.0 it returns admin_url('profile.php') or if its 3.1 or greater it returns self_admin_url('profile.php').