Use path attribute to get source file's path and fallback to name attribute if path was not found
Merge pull request #49 from jubianchi/master

Better strategy to find source file's path