Added function smack_label_from_path()

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com>