HUE-1292 - [core] separate core app pth and installed app pth files

- Create pth based on relative or absolute path