changed the test for the application symlink to actually test for the symlink nd not its target