Remove duplicate code

Signed-off-by: Fred Bricon <fbricon@gmail.com>
JBIDE-18340 NullPointerException occures when opening properties file from external jar

In case of a link in Linux, java.io.File.equals returns false,
if instance with absolute path is compared to an instance with
an alias in its path. It is only safe to compare canonical paths.