use Location of assembly instead of CodeBase

fixes #315