Resolve src path based on relative directory