Use path attribute to get source file's path and fallback to name attribute if path was not found