Fix for partial trust environments
Assembly.GetExecutingAssembly() cannot be used in Partial trust environments
Also linux type paths report file:// and not file:/// so substring(8) should not be used