Correct how entry_ls detect an rpm installation.
This if statement
checks gets the real path of the gfactory_dir and compares it with a predefined path (/var/lib/gwms-factory/work-dir). However, /var/lib/gwms-factory/work-dir can also be a symlink, and the rpm installation is not detected. We need to call os.path.realpath also on the right side of the if statement.