#931 additional method to getCanonicalPath only when possible - otherwise returns file. Fix for when we try to create an aspect with an invalid name