Added ternary to load file from project dir