Fixed bug with finding wrong megatest.config and megatest.db due to usage of symlinks