using aliasesFile method rather than using the variable directly since it might not have been initialised when we use it - fix #305